import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'
import { Layout } from 'antd'
import 'antd/dist/reset.css'
import './App.css'
import Home from './Home'
import MainLayout from './MainLayout'

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/main/*" element={<MainLayout />}>
          <Route index element={<Navigate to="/main/dashboard" replace />} />
        </Route>
      </Routes>
    </Router>
  )
}

export default App
